# -*- encoding:utf-8 -*-
# @Time: 2022/11/23 20:26
# @Author : moran
# @Email: moran@maqu.com
# @File: urls.py
# @Software: PyCharm
from rest_framework.routers import DefaultRouter
from .views import *

urlpatterns = [

]
router = DefaultRouter()  # 创建路由器
router.register('classifications', ClassificationViewSet)  # 注册路由器
router.register('commoditys', CommodityViewSet)  # 注册路由器
router.register('cart', ShoppingCartViewSet, basename='shoppingcart')
router.register('order', OrderViewSet, basename='order')
router.register('payments', PaymentViewSet, basename='payment')
urlpatterns += router.urls
